package com.assumejson.aop;

import com.assumejson.aop.config.AppConfig;
import com.assumejson.aop.service.IUserService;
import com.assumejson.aop.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/9 10:26
 */
public class MainStart {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
//		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");


//		context.scan("");

//		IUserService userService = context.getBean("userService", IUserService.class);
//		userService.test();

		Object userService1 = context.getBean("userService1");
	}
}
